package com.kxf.androidtestdemo.bean;

import java.util.Arrays;

public class TestBean {
    private String name;
    private String info;
    private Child[] chs;
    private int age;
    private boolean flag;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public Child[] getChs() {
        return chs;
    }

    public void setChs(Child[] chs) {
        this.chs = chs;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return "TestBean{" +
                "name='" + name + '\'' +
                ", info='" + info + '\'' +
                ", chs=" + Arrays.toString(chs) +
                ", age=" + age +
                ", flag=" + flag +
                '}';
    }

    public static class Child{
        private String nameCh;
        private String infoCh;

        public String getNameCh() {
            return nameCh;
        }

        public void setNameCh(String nameCh) {
            this.nameCh = nameCh;
        }

        public String getInfoCh() {
            return infoCh;
        }

        public void setInfoCh(String infoCh) {
            this.infoCh = infoCh;
        }

        @Override
        public String toString() {
            return "Child{" +
                    "nameCh='" + nameCh + '\'' +
                    ", infoCh='" + infoCh + '\'' +
                    '}';
        }
    }
}
